import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/warehousing_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/warehousing_entity.g.dart';

/// 算法出入库数量列表数据
@JsonSerializable()
class WarehousingEntity {
  WarehousingEntity();

  factory WarehousingEntity.fromJson(Map<String, dynamic> json) => $WarehousingEntityFromJson(json);

  ///	企业唯一编码
  late String companyCode = '';

  ///	创建时间
  late String createDate = '';

  ///	主键id
  late String id = '';

  ///	0:入库 1:出库
  late int outboundOrInbound = 0;

  ///	入库数量
  late int receiptQuantity = 0;

  ///	修改时间
  late String updateDate = '';

  Map<String, dynamic> toJson() => $WarehousingEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
